import React,{useEffect,useState} from 'react';
export let useClinet = ()=>{
    let [mousedistance,setMousedistance] = useState({x:0,y:0})
    useEffect(()=>{
        let handalmove = (event)=>{
            console.log(event.screenX);
            console.log(event.screenY);
            setMousedistance({x:event.screenX,y:event.screenY})
        }
        window.addEventListener("mousemove",handalmove,false)
      },[])
    return [mousedistance.x,mousedistance.y]
}
